﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cludg.Services.Security.Permissions
{
	using Domain.Users;
	using Domain.Content;

	public class RoleBasedPermission : Permission
	{
		public UserRole[] Roles { get; set; }

		public override bool UserHasPermission(User user, IContent content)
		{
			return Roles.Contains(user.Role);
		}
	}
}
